﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ECO.Admin.Application.Controllers.Auth.Dtos.InputModels
{
    public class LoginInput : ValidCodeInput
    {
        [Required(ErrorMessage = "账户不能为空")]
        public string Account { get; set; }

        [Required(ErrorMessage = "密码不能为空"), MinLength(8, ErrorMessage = "密码最少8位")]
        public string Password { get; set; }
    }
    public class ValidCodeInput
    {
        /// <summary>
        /// 验证码
        /// </summary>
        public string ValidCode { get; set; }

        /// <summary>
        /// 请求号
        /// </summary>
        public string ValidCodeReqNo { get; set; }
    }
}
